FROM centos:8

MAINTAINER Snail<huhailang@comtom.cn>

RUN yum update -y
RUN yum install -y epel-release
RUN yum list |grep java-11
RUN yum install -y java-11-openjdk-devel.x86_64 java-11-openjdk-headless.x86_64 java-11-openjdk.x86_64

RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN dnf install -y 'dnf-command(config-manager)'
RUN dnf config-manager --set-enabled powertools

RUN dnf install -y https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN dnf localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
RUN dnf install -y --nogpgcheck https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm -y

RUN dnf install -y https://rpmfind.net/linux/centos/8.3.2011/PowerTools/x86_64/os/Packages/SDL2-2.0.10-2.el8.x86_64.rpm
RUN dnf install -y ffmpeg ffmpeg-devel
RUN ffmpeg -version

ENV LANG C.UTF-8

RUN mkdir -p /usr/local/jar

COPY ./target/cvs-management-0.0.1-SNAPSHOT.jar  /usr/local/jar/

RUN ls /usr/local/jar/

CMD java -jar -Xms768m -Xmx1024m -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 /usr/local/jar/cvs-management-0.0.1-SNAPSHOT.jar